package org.jeecg.modules.api.member.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 分销会员信息
 * @Author: jeecg-boot
 * @Date:   2024-09-19
 * @Version: V1.0
 */
@Data
@TableName("fx_member")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="fx_member对象", description="分销会员信息")
public class Member implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    @JsonIgnore
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    @JsonIgnore
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    @JsonIgnore
    private java.lang.String sysOrgCode;
	/**蓝客帝用户id*/
	@Excel(name = "蓝客帝用户id", width = 15)
    @ApiModelProperty(value = "蓝客帝用户id")
    @JsonIgnore
    private java.lang.String sourceMemberId;
	/**微信小程序id*/
	@Excel(name = "微信小程序id", width = 15)
    @ApiModelProperty(value = "微信小程序id")
    private java.lang.String openid;
	/**头像*/
	@Excel(name = "头像", width = 15)
    @ApiModelProperty(value = "头像")
    private java.lang.String avatar;
	/**会员等级 1.青铜2.白银 3.黄金*/
	@Excel(name = "会员等级 1.青铜2.白银 3.黄金", width = 15, dicCode = "member_level")
	@Dict(dicCode = "member_level")
    @ApiModelProperty(value = "会员等级 1.青铜2.白银 3.黄金")
    private java.lang.Integer level;
	/**昵称*/
	@Excel(name = "昵称", width = 15)
    @ApiModelProperty(value = "昵称")
    private java.lang.String nickname;

    @Excel(name = "手机号", width = 15)
    @ApiModelProperty(value = "手机号")
    private java.lang.String phone;

	/**介绍人id*/
	@Excel(name = "介绍人id", width = 15)
    @ApiModelProperty(value = "介绍人id")
    @Dict(dictTable = "fx_member", dicText = "nickname", dicCode = "id")
    private Long recommendId;
	/**团队路径*/
	@Excel(name = "团队路径", width = 15)
    @ApiModelProperty(value = "团队路径")
    @JsonIgnore
    private java.lang.String fxTeamIds;
	/**佣金*/
	@Excel(name = "佣金", width = 15)
    @ApiModelProperty(value = "佣金")
    private java.math.BigDecimal commission;
	/**上月推广*/
	@Excel(name = "上月推广", width = 15)
    @ApiModelProperty(value = "上月推广")
    private java.math.BigDecimal lastMonthExtension;
	/**本月推广*/
	@Excel(name = "本月推广", width = 15)
    @ApiModelProperty(value = "本月推广")
    private java.math.BigDecimal currentMonthExtension;
	/**可提现金额*/
	@Excel(name = "可提现金额", width = 15)
    @ApiModelProperty(value = "可提现金额")
    private java.math.BigDecimal withdrawMoney;

    @ApiModelProperty(value = "等级更新标志 0：已处理 1：未处理")
    @JsonIgnore
    private Integer levelState;
    @ApiModelProperty(value = "推荐人对象")
    @TableField(exist = false)
    private Member recommend;

    @ApiModelProperty(value = "订单数")
    @TableField(exist = false)
    private java.lang.Integer orderNum;
    @TableField(exist = false)
    @ApiModelProperty(value = "团队列表")
    private List<Member> childList = new ArrayList<>();

}
